<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
</head>
<body>
	<p>
		当前页数:[${param.pageNo }/${param.pageCount}]&nbsp;&nbsp;&nbsp;&nbsp;
		<c:if test="${param.pageNo>1 }">
			<a href="javascript:search(1,${param.pageSize })">首页</a>&nbsp;&nbsp;&nbsp;&nbsp;
		  	<a href="javascript:search(${param.pageNo-1 },${param.pageSize})">上一页</a>&nbsp;&nbsp;&nbsp;&nbsp;
		  			</c:if>
		<c:if test="${param.pageNo<param.pageCount }">
			<a href="javascript:search(${param.pageNo+1 },${param.pageSize})">下一页</a>&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="javascript:search(${param.pageCount },${param.pageSize })">末页</a>&nbsp;&nbsp;&nbsp;&nbsp;
					</c:if>
		总${param.totalCount }条&nbsp;&nbsp;&nbsp;&nbsp; 

	</p>
	
	<script type="text/javascript">
		function search(pageNo,pageSize){
			if(pageSize){
				document.getElementById("pageSize").value = pageSize;
			}
			document.getElementById("pageNo").value = pageNo;
			document.forms[0].submit();
		}
	
	</script>
</body>
</html>
